home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Starter
/
Source
/
Document.h
< prev
next >
Wrap
Text File
|
1995-06-12
|
991b
|
49 lines
#import <appkit/appkit.h>
@interface Document:Object
{
id window;
const char *documentName, *documentPath;
int tag;
unsigned long createTime, lastModifyTime;
}
/* ==== init section ==== */
- init;
- awakeFromNib;
/* ==== access to instance variables ==== */
- window;
- (int)tag;
- setTag:(int)aTag;
- (const char *)documentName;
- (const char *)documentPath;
- setDocumentName:(const char *)aName;
- setDocumentPath:(const char *)aPath;
- getInspectorData:(const char **)nm :(const char **)pth :(int *)t
:(unsigned long *)ct :(unsigned long *)lt;
/* ==== file handling ==== */
- setupNewDoc:(const char *)newPath;
- (BOOL)openDocFile:(const char *)aPath;
- saveDocument;
- saveDocumentAs:(const char *)aPath;
- saveDocumentTo:(const char *)aPath;
/* ==== Window delegate methods ==== */
- windowDidBecomeKey:sender;
- windowWillClose:sender;
- windowDidUpdate:sender;
- windowDidResize:sender;
/* ==== Edit methods ==== */
- delete:sender;
- selectAll:sender;
- free;
@end